package com.sharp.authorization.dao.common.entity;

import com.sharp.kernel.config.db.key.SequenceGenId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Title: SaSmsSend
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/16 17:36
 */

/**
 * 短信发送记录
 */
@ApiModel(value = "com-sharp-authorization-dao-common-entity-SaSmsSend")
@Data
@Table(name = "sa_sms_send")
public class SaSmsSend {
    /**
     * 发送流水号
     */
    @Id
    @Column(name = "send_id")
    @ApiModelProperty(value = "发送流水号")
    @KeySql(genId = SequenceGenId.class)
    private String sendId;

    /**
     * 手机号码
     */
    @Column(name = "mobile")
    @ApiModelProperty(value = "手机号码")
    private String mobile;

    /**
     * 发送参数表
     */
    @Column(name = "send_msg")
    @ApiModelProperty(value = "发送参数表")
    private String sendMsg;

    /**
     * 发送状态
     */
    @Column(name = "send_status")
    @ApiModelProperty(value = "发送状态")
    private String sendStatus;

    /**
     * 发送时间
     */
    @Column(name = "send_time")
    @ApiModelProperty(value = "发送时间")
    private Date sendTime;

    /**
     * 发送结果
     */
    @Column(name = "send_result")
    @ApiModelProperty(value = "发送结果")
    private String sendResult;

    /**
     * 发送类型
     */
    @Column(name = "send_type")
    @ApiModelProperty(value = "发送类型")
    private String sendType;

    /**
     * 发送模板
     */
    @Column(name = "template_id")
    @ApiModelProperty(value = "发送模板")
    private String templateId;
}
